(function(){"use strict";BX.namespace("BX.Landing.UI.Field");var i=BX.Landing.Utils.addClass;var t=BX.Landing.Utils.clone;var e=BX.Landing.Utils.append;var a=BX.Landing.Utils.create;var n=[{name:"",value:"top-left"},{name:"",value:"top-center"},{name:"",value:"top-right"},{name:"",value:"middle-left"},{name:"",value:"middle-center"},{name:"",value:"middle-right"},{name:"",value:"bottom-left"},{name:"",value:"bottom-center"},{name:"",value:"bottom-right"}];BX.Landing.UI.Field.Position=function(s){this.dataItems=s.items?t(s.items):{};this.mode=s.mode?s.mode:"ball";if(Object.keys(this.dataItems).length){s.items=n.map(function(i){if(i.value in this.dataItems){if("content"in this.dataItems[i.value]){i.name=this.dataItems[i.value].content}if("value"in this.dataItems[i.value]){i.value=this.dataItems[i.value].value}}return i},this)}else{s.items=n}BX.Landing.UI.Field.ButtonGroup.apply(this,arguments);i(this.layout,"landing-ui-field-position");i(this.layout,"landing-ui-field-position-mode-"+this.mode);this.wrapper=a("div",{props:{className:"landing-ui-field-position-wrapper"}});this.container=a("div",{props:{className:"landing-ui-field-position-container"},children:this.buttons.map(function(i){return i.layout})});e(this.container,this.wrapper);var l=a("div",{props:{className:"landing-ui-field-position-stripes"},children:[a("span",{props:{className:"landing-ui-field-position-stripes-item"}}),a("span",{props:{className:"landing-ui-field-position-stripes-item"}}),a("span",{props:{className:"landing-ui-field-position-stripes-item"}}),a("span",{props:{className:"landing-ui-field-position-stripes-item"}}),a("span",{props:{className:"landing-ui-field-position-stripes-item"}})]});e(l,this.wrapper);e(this.wrapper,this.input);this.setValue(s.value,true);this.value=this.getValue()};BX.Landing.UI.Field.Position.prototype={constructor:BX.Landing.UI.Field.Position,__proto__:BX.Landing.UI.Field.ButtonGroup.prototype}})();